package de.hwrberlin.remo.algorithm.util;

import java.util.ArrayList;
import java.util.List;

import de.hwrberlin.remo.algorithm.AlgorithmListener;
import de.hwrberlin.remo.algorithm.steps.AlgorithmStep;

/**
 * This class is used to store all finished steps of an inferenz
 * algorithm.
 * 
 * @author Mario Sänger (IT 09)
 * @version 1.0
 *
 */
public class AlgorithmStepSaver implements AlgorithmListener {

	private List<AlgorithmStep> algorithmSteps = new ArrayList<AlgorithmStep>();
	
	@Override
	public void stepFinished(AlgorithmStep step) {
		algorithmSteps.add(step);
	}
	
	public List<AlgorithmStep> getSteps() {
		return algorithmSteps;
	}
}